#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START help2man
# uses: perl

reset_mtime help2man help2man/configure.ac
rm -rf build/help2man
mkdir -p build/help2man
cd build/help2man
cat > config.cache <<EOF
ac_cv_path_INSTALL_INFO='../../help2man/build-aux/missing install-info'
ac_cv_path_MAKEINFO='../../help2man/build-aux/missing makeinfo'
ac_cv_path_MSGMERGE='../../help2man/build-aux/missing msgmerge'
ac_cv_path_MSGFMT='../../help2man/build-aux/missing msgfmt'
ac_cv_path_PO4A_TRANSLATE='../../help2man/build-aux/missing po4a-translate'
ac_cv_path_PO4A_UPDATEPO='../../help2man/build-aux/missing po4a-updatepo'
ac_cv_path_XGETTEXT='../../help2man/build-aux/missing xgettext'
EOF

../../help2man/configure \
	${CONFIGURE_ARGS} \
	--cache-file=config.cache \
	--disable-nls \
	${AUTOCRAP_KLUDGE} \
	${NIL}

cd ../..
make_build build/help2man

# RECIPE END help2man
